/* pages/health/recommendation/recommendation.scss */
.recommendation-container {
  padding: 20rpx;
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* 头部区域 */
.header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24rpx;
}

.health-summary {
  flex: 1;
}

.summary-title {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 16rpx;
  display: block;
}

.health-indicators {
  display: flex;
  gap: 24rpx;
  flex-wrap: wrap;
}

.indicator-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16rpx 20rpx;
  background: white;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
  min-width: 120rpx;
}

.indicator-label {
  font-size: 22rpx;
  color: #999;
  margin-bottom: 8rpx;
}

.indicator-value {
  font-size: 28rpx;
  font-weight: 600;
  color: #1890ff;
  margin-bottom: 4rpx;
}

.indicator-status {
  font-size: 20rpx;
  color: #52c41a;
  padding: 4rpx 8rpx;
  background-color: #f6ffed;
  border-radius: 4rpx;
}

.regenerate-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16rpx 20rpx;
  background: white;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
  border: none;
}

.btn-icon {
  font-size: 24rpx;
  margin-bottom: 8rpx;
}

.btn-text {
  font-size: 22rpx;
  color: #1890ff;
}

/* 推荐理由 */
.reasons-section {
  margin-bottom: 24rpx;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16rpx;
}

.title-text {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
}

.reasons-list {
  background: white;
  border-radius: 12rpx;
  padding: 20rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.reason-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12rpx;
}

.reason-item:last-child {
  margin-bottom: 0;
}

.reason-icon {
  font-size: 24rpx;
  margin-right: 12rpx;
  margin-top: 2rpx;
}

.reason-text {
  font-size: 26rpx;
  color: #666;
  line-height: 1.5;
  flex: 1;
}

/* 营养建议 */
.advice-section {
  margin-bottom: 24rpx;
}

.advice-content {
  background: white;
  border-radius: 12rpx;
  padding: 20rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.advice-text {
  font-size: 26rpx;
  color: #666;
  line-height: 1.6;
}

/* 餐次选择 */
.meal-selector {
  margin-bottom: 24rpx;
}

.meal-tabs {
  display: flex;
  background: white;
  border-radius: 12rpx;
  padding: 8rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.meal-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16rpx 8rpx;
  border-radius: 8rpx;
  transition: all 0.3s ease;
}

.meal-tab.active {
  background-color: #1890ff;
  color: white;
}

.meal-icon {
  font-size: 28rpx;
  margin-bottom: 8rpx;
}

.meal-name {
  font-size: 24rpx;
  font-weight: 500;
}

/* 食谱区域 */
.recipes-section {
  margin-bottom: 24rpx;
}

.recipe-count {
  font-size: 24rpx;
  color: #999;
}

/* 加载状态 */
.loading-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80rpx 20rpx;
  background: white;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.loading-spinner {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid #f0f0f0;
  border-top: 4rpx solid #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20rpx;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 26rpx;
  color: #666;
}

/* 食谱列表 */
.recipes-list {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.recipe-card {
  background: white;
  border-radius: 12rpx;
  overflow: hidden;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.recipe-card:active {
  transform: scale(0.98);
}

.recipe-image-container {
  position: relative;
  height: 200rpx;
}

.recipe-image {
  width: 100%;
  height: 100%;
}

.recipe-score {
  position: absolute;
  top: 12rpx;
  right: 12rpx;
  background: rgba(24, 144, 255, 0.9);
  color: white;
  padding: 6rpx 12rpx;
  border-radius: 20rpx;
  font-size: 20rpx;
}

.recipe-info {
  padding: 20rpx;
}

.recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12rpx;
}

.recipe-title {
  font-size: 30rpx;
  font-weight: 600;
  color: #333;
  flex: 1;
  margin-right: 16rpx;
}

.recipe-actions {
  display: flex;
  gap: 8rpx;
}

.action-btn {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
  border: none;
}

.favorite-btn:active {
  background-color: #ff4d4f;
}

.action-icon {
  font-size: 24rpx;
}

.recipe-meta {
  display: flex;
  gap: 20rpx;
  margin-bottom: 16rpx;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 22rpx;
  color: #999;
}

.health-tags {
  display: flex;
  gap: 8rpx;
  margin-bottom: 12rpx;
  flex-wrap: wrap;
}

.health-tag {
  font-size: 20rpx;
  color: #1890ff;
  background-color: #e6f7ff;
  padding: 4rpx 8rpx;
  border-radius: 4rpx;
}

.recipe-desc {
  font-size: 24rpx;
  color: #666;
  line-height: 1.5;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80rpx 20rpx;
  background: white;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.empty-icon {
  font-size: 80rpx;
  margin-bottom: 20rpx;
}

.empty-text {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 12rpx;
  font-weight: 500;
}

.empty-desc {
  font-size: 24rpx;
  color: #999;
  text-align: center;
}
